package com.yaser.framework;

import java.util.ArrayList;

import org.primefaces.model.DefaultTreeNode;
import org.primefaces.model.TreeNode;

public class MyTreeNode extends DefaultTreeNode{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private boolean leaf;

	
	
	
	
	public MyTreeNode() {
		super();
	}

	public MyTreeNode(Object data, TreeNode parent) {
		super(data, parent);
	}
	
	public MyTreeNode(String type, Object data, TreeNode parent) {
		super(type, data, parent);
	}
	
	
	
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	public boolean isLeaf() {
		return leaf;
	}
}
